package com.deram.ctin.serv.enter.service;

import com.deram.ctin.common.bean.PageResult;
import com.deram.ctin.serv.enter.entity.EnterInfo;
import com.deram.ctin.serv.enter.filter.EnterInfoFilter;

import java.util.List;

/**
 * @Author: jtt
 * @Description:
 * @Date: 2017/9/12 10:27
 * @version: V1.0
 */
public interface EnterInfoService {

    EnterInfo find(Long id);

    EnterInfo findByCode(String code);

    EnterInfo findByName(String name);

    List<EnterInfo> list(EnterInfoFilter filter);

    List<EnterInfo> searchByKey(String keywords);

    List<EnterInfo> searchByFather(Long fatherId);

    PageResult<EnterInfo> findByFather(EnterInfoFilter filter,Integer pageNo,Integer pageSize);

    List<EnterInfo> findAll();

    EnterInfo save(EnterInfo param);

    void insertList(List<EnterInfo> param);

    EnterInfo saveByCode(EnterInfo param);

    void delete(Long id);
}
